package com.example.day07_zhongji.presenter;

import com.example.day07_zhongji.base.BasePresenter;
import com.example.day07_zhongji.bean.TreBean;
import com.example.day07_zhongji.model.TreeCallBack;
import com.example.day07_zhongji.model.TreeModel;
import com.example.day07_zhongji.view.TreeView;

public class TreePresenter extends BasePresenter<TreeView> implements TreeCallBack {
    private TreeModel model;
    @Override
    protected void initModel() {
        this.model=new TreeModel();
        addModel(model);
    }
    public void getdata(){
        model.treedata(this);
    }
    @Override
    public void onSuccess(TreBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
